package com.lovo.csc.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lovo.csc.bean.UserBean;
import com.lovo.csc.bean.UserInfoBean;
import io.swagger.models.auth.In;
import org.apache.catalina.User;
import org.apache.ibatis.annotations.Lang;

import java.util.List;

public interface IUserService {

   public void add(UserBean userBean);

   public Page<UserBean> findByStatus(Integer status,Integer pageNO);

   public UserBean findById(long userId);

   public UserBean findUserById(long userId);

   public void updateUserinfo(long userId, Integer status,String str,String adminRealName);

   public Page<UserBean> findByUserFreezeStatus(Integer pageNO);

   /**
    * 修改用户冻结状态
    * @param userId 用户id
    * @param status 状态
    */
   public void  updateUserFreezeStatus(long userId,Integer status);

   /**
    * 远程后端    按用户名修改预存款（收货入库修改状态）
    * @param userName 用户名
    * @param money 订单金额
    */
   public void  updateMoneyByUserName(String userName,float money);

   float getDiscount(String userName);


}
